package com.sg.controller.bff;

import com.sg.service.biz.bff.SystemDockingService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "SystemDocking", tags = {"SystemDocking"})
@RestController
// @RequestMapping("/oms/systemDocking/")
public class SystemDockingController {

    @Autowired
    SystemDockingService systemDockingService;

    /**
     * B2执行导入excel文件数据(管理)
     * gen by moon at 3/23/2024, 8:02:21 PM
     */
    @PostMapping("/oms/mgt/systemDocking/implementImportExcelFileData")
    @ApiOperation(value = "B2执行导入excel文件数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementImportExcelFileDataRespDto> implementImportExcelFileData(@RequestBody(required = false) @Validated BffImplementImportExcelFileDataReqDto reqDTO) {
        return OkrResult.success(systemDockingService.implementImportExcelFileData(reqDTO));
    }
}
